<%@ page contentType="text/html; charset=utf-8"%>
<html>
<head>
<title>life.jsp</title>
</head>
<body>
	<%
		serviceVar++;
		System.out.println("_jspService(): JSP共响应了" + serviceVar + "次请求");

		String content1 = "初始化次数1 : " + initVar;
		String content2 = "响应客户请求次数 : " + serviceVar;
		String content3 = "销毁次数 : " + destroyVar;
	%>

	<h1><%=content1%></h1>
	<h1><%=content2%></h1>
	<h1><%=content3%></h1>


	<%!private int initVar = 0;
	private int serviceVar = 0;
	private int destroyVar = 0;%>

	<%!public void jspInit() {
		initVar++;
		System.out.println("jspInit(): JSP被初始化了" + initVar + "次");
	}

	public void jspDestroy() {
		destroyVar++;
		System.out.println("jspDestroy(): JSP被销毁了" + destroyVar + "次");
	}%>


</body>
</html>